package com.xqx.dao.impl;

import com.xqx.dao.UserDao;
import com.xqx.domain.User;

import java.util.List;
import java.util.Map;
import java.util.Properties;

/**
 * @author：xingquanxiang createTime：2019/10/1 15:12
 * description:
 */
public class UserDaoImpl implements UserDao {
    /*public UserDaoImpl() {
        System.out.println("UserDaoImpl创建。。。");
    }
    public void init(){
        System.out.println("初始化方法....");
    }*/
    private List<String> strList;
    private Map<String, User> userMap;
    private Properties properties;

    public void setStrList(List<String> strList) {
        this.strList = strList;
    }

    public void setUserMap(Map<String, User> userMap) {
        this.userMap = userMap;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    private String username;
    private int age;

    public void setUsername(String username) {
        this.username = username;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public void save() {
        System.out.println(username+":"+age);
        System.out.println("strList = " + strList);
        System.out.println("userMap = " + userMap);
        System.out.println("properties = " + properties);
        System.out.println("正在保存。。。");
    }
    /*public void destroy(){
        System.out.println("销毁方法....");
    }*/

}
